<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" isELIgnored="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
    <style>
        body{
            background-color: lightgray;
        }
        h2{
            color:darkgreen;
            text-align: center;
        }
        th{
            background-color: orange;
            width:100px;
            border:1px solid gray;
        }
        td{
            width:100px;
            border:1px solid gray;
        }
        #main{
            margin:0 auto;
            width:650px;
        }
        table{
            border-collapse: collapse;
        }
    </style>
</head>
<body>
    <h2>用户信息列表</h2>
    <div id="main">
    <table>
        <tr>
            <th>序号</th>
            <th>用户名</th>
            <th>中文名</th>
            <th>性别</th>
            <th>电话</th>
            <th>邮件</th>
            <th>备注</th>
        </tr>
        <c:forEach items="${userList}" var="user">
            <tr>
                <td>${user.id}</td>
                <td>${user.user_name}</td>
                <td>${user.cnname}</td>
                <td>${user.sex == 1 ? "男" : "女"}</td>
                <td>${user.mobile}</td>
                <td>${user.email}</td>
                <td>${user.note}</td>
            </tr>
        </c:forEach>
    </table>
    </div>
</body>
</html>
